<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="lib/vue.global.js"></script>
</head>
<body>
  <div id="root"></div>
</body>
<script>
  const { createApp, h } = window.Vue

  const app = createApp({
    setup(props) {
      return () => { // jsx语法 需要在setup函数内部返回一个函数，在函数返回jsx组件
        return h('h2', { title: 'test' }, '您好')
      }
    }
  })

  app.mount('#root')
</script>
</html>